/*
 * @Author: wangdengduo
 * @Date: 2023-05-06 13:59:25
 * @LastEditors: wangdengduo
 * @LastEditTime: 2023-05-10 10:13:56
 * @FilePath: \todo\src\router\index.js
 * @Description:
 */
import Home from "@/pages/home";
import Todo from "@/pages/todo";

const routes = [
  {
    path: "/",
    element: <Home />,
    children: [
      {
        path: "done",
        element: <Todo filter="done" />,
      },
      {
        path: "todo",
        element: <Todo />,
      },
    ],
  },
];

export default routes;
